#include <iostream>
#include <ctime>
#include <unistd.h>
using namespace std;
void t()
{
    time_t now = time(0);
    char* dt = ctime(&now);
    cout << "当前的日期和时间：" << dt << endl;
    tm *gmtm = gmtime(&now);
    dt = asctime(gmtm);
    cout << "当前UTC日期和时间:" << dt << endl;
}
int main()
{
    for ( ; ; )
    {
        t();
        sleep(1);
        system("clear");
        
    }


    return 0;
}